#!/usr/bin/python
#coding=utf-8
# Filename: log.py
# CreatedBy: ChenZhengguo 2011/12/7

import msvcrt, sys, os, re

class ParseLog:
    '''Write log info into a file'''
    def __init__(self):
        return None
    def write(self, filename = 'parse.log', type='a', data = None):
        f = open(filename, type)
        f.write(data+"\n")
        f.close()
        return True
